package com.binhthuan.catechist.client.viewer;

import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.types.DateDisplayFormat;
import com.smartgwt.client.widgets.viewer.DetailViewer;

/**
 * @author Giang Đinh
 *
 */
public abstract class AbstractViewer extends DetailViewer {

    public static final String HEADER = "header";
    /**
     * 
     */
    public AbstractViewer(DataSource dataSource) {
        setDataSource(dataSource);
        setWidth100();
        setHeight100();
        setCanSelectText(true);
        setWrapLabel(false);
        setWrapValues(false);
        setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATE);
        setDatetimeFormatter(DateDisplayFormat.TOEUROPEANSHORTDATETIME);
    }
}
